package com.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * (TbWorker)实体类
 *
 * @author makejava
 * @since 2023-07-10 15:15:15
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_worker")
public class TbWorker implements Serializable {
    private static final long serialVersionUID = -11069667154884515L;
    @TableId(type = IdType.AUTO)
    private Integer workerId;
    
    private String workerName;
    
    private String workerTel;
    
    private Integer workerState;
    
    private Integer workerPosition;
    
    private String workerCode;
    
    private String workerAera;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date workerAddtime;
    
    private Integer workerA;
    
    private Integer workerB;
    
    private Integer workerC;
    
    private Integer workerD;
    
    private Integer workerE;
}

